package com.sdry.model.lz;

import com.sdry.model.jyy.ReceiveDetailQuality;
import com.sdry.model.zc.ZcMaterielAndTrayEntity;

import java.util.Objects;

/**
 * @ClassName CodeMark
 * @Description 物料详细
 * @Author lz
 * @Date 2019年7月10日 13:49:50
 * @Version 1.0
 * 
 * 修改人：吉永艳
 * 修改时间：2019-11-06
 * 修改内容：34-41，增加批次字段以及set(),get()方法，临时存放
 */
public class CodeMark {

	//质检表的id，不是收货单详细的id
	private Long receive_detail_id;
	//条码
	private String code;
	//单箱数量
	private int num;
	//0:良品 1：不良
	private int is_ng;
	//收货单实体
	private ReceiveDetailQuality receiveDetailQuality;
	//物料托盘
	private ZcMaterielAndTrayEntity zcMaterielAndTray;
	//临时用
	private String location_name;
	//临时用-托盘码（上架用）
	private String tray_code;
	//临时用-物料id（上架用）
	private Long mid;
	//临时用-是否满托 （上架用）
	private String is_full;
	
	/**仓库id*/
	private Long warehouse_id;
	
	/**批次*/
	private String pici;
	
	public Long getWarehouse_id() {
		return warehouse_id;
	}
	public void setWarehouse_id(Long warehouse_id) {
		this.warehouse_id = warehouse_id;
	}
	public String getPici() {
		return pici;
	}
	public void setPici(String pici) {
		this.pici = pici;
	}

	public Long getReceive_detail_id() {
		return receive_detail_id;
	}

	public void setReceive_detail_id(Long receive_detail_id) {
		this.receive_detail_id = receive_detail_id;
	}

	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}

	public int getNum() {
		return num;
	}

	public void setNum(int num) {
		this.num = num;
	}

	public int getIs_ng() {
		return is_ng;
	}

	public void setIs_ng(int is_ng) {
		this.is_ng = is_ng;
	}

	public ReceiveDetailQuality getReceiveDetailQuality() {
		return receiveDetailQuality;
	}

	public void setReceiveDetailQuality(ReceiveDetailQuality receiveDetailQuality) {
		this.receiveDetailQuality = receiveDetailQuality;
	}

	public ZcMaterielAndTrayEntity getZcMaterielAndTray() {
		return zcMaterielAndTray;
	}

	public void setZcMaterielAndTray(ZcMaterielAndTrayEntity zcMaterielAndTray) {
		this.zcMaterielAndTray = zcMaterielAndTray;
	}

	public String getLocation_name() {
		return location_name;
	}

	public void setLocation_name(String location_name) {
		this.location_name = location_name;
	}
	public String getTray_code() {
		return tray_code;
	}
	public void setTray_code(String tray_code) {
		this.tray_code = tray_code;
	}
	public Long getMid() {
		return mid;
	}
	public void setMid(Long mid) {
		this.mid = mid;
	}
	public String getIs_full() {
		return is_full;
	}
	public void setIs_full(String is_full) {
		this.is_full = is_full;
	}

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        CodeMark codeMark = (CodeMark) o;
        return Objects.equals(code, codeMark.code);
    }

    @Override
    public int hashCode() {
        return Objects.hash(code);
    }
}